﻿#ifndef FINANCENETWORKACCESSMANAGER_H
#define FINANCENETWORKACCESSMANAGER_H

#include "basenetworkaccessmanager.h"

class FinanceNetworkAccessManager : public BaseNetworkAccessManager
{
    Q_OBJECT
public:
    explicit FinanceNetworkAccessManager(QObject *parent = nullptr);

    void addFinanceItem(QString companyId, int type, QString category, QString subject);

    void getFinanceItems(QString companyId);

    void addFinanceRecord(QString username, QString companyId, QString itemId, double money, QString remark);

    void deleteFinanceItem(QString companyId, QString itemId);

    void updateFinanceItem(
            QString companyId,
            QString itemId,
            int type,
            QString category,
            QString subject);

    void financeQuery(
            QString username,
            int type1,
            int type2,
            QString startDate,
            QString endDate);
signals:

public slots:
};

#endif // FINANCENETWORKACCESSMANAGER_H
